package com.xdq.spring.model;

import java.util.Random;

/**
 * 变速箱
 */
public class Transmission {

    private String type;

    private String brand;

    private String createDate;

    private String serialNo;

    public Transmission() {
        System.out.println("Transmission被实例化了");
    }


    public void shift(int num){
        System.out.println("换挡到："+num+"完成");
    }

    public void shift(){
        System.out.println("切换到"+new Random().nextInt(6)+"挡");
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }
}
